#include <iostream>
#include <cstring>


struct Student 
{
public:
    void SetID(int id)
    {
        m_id = id;
    }
    void SetName(const char *name)
    {
        strcpy(m_Name, name);
    }
    void Print()
    {
        std::cout << m_id << " " << m_Name << std::endl;
    }

private:
    int m_id;
    char m_Name[20];
};

int main()
{
    Student s;
    // s.m_id = 10;
    s.SetID(10);
    s.SetName("zhangsan");
    s.Print();
    return 0;
}